﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bencoder.Types
{
    /// <summary>
    /// Class for representing a string bencode type
    /// </summary>
    public sealed class BString : BElement, IComparable<BString>
    {
        private string _Data;
        internal BString(string data)
            :
            base()
        {
            _Data = data;
        }
        internal BString()
            :
            this(null)
        {

        }

        public static implicit operator string(BString bstr)
        {
            return bstr._Data;
        }

        public static implicit operator BString(string str)
        {
            return new BString(str);
        }

        public int CompareTo(BString other)
        {
            throw new NotImplementedException();
        }
    }
}
